/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package is202.hrms.web;

import is202.hrms.ejb.RegisterEJB;
import is202.hrms.entity.Register;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 * Lager en liste over alle brukere som registrerer seg.
 * 
 * @author Anders
 */
@Named("registerlistbean")
@RequestScoped
public class RegisterListBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @EJB RegisterEJB regiEjb;

    public RegisterListBean() {
    }

    public List<Register> getRegister() {
        List<Register> l = regiEjb.findAll();
        return l;
    }
}
